package com.xlh.dto.course;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.xlh.dto.system.IconDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 课程信息
 * <p>
 * Created by lx on 2019/1/28.
 */
@Data
public class CourseBasicDTO implements IconDTO {

    @ApiModelProperty(value = "课程id")
    private Long id;

    @ApiModelProperty(value = "课程基本id")
    private Long courseBasicId;

    @ApiModelProperty(value = "课程名称")
    private String name;

    @JsonIgnore
    @ApiModelProperty(value = "类型 1：核心课程 2：扩展课程")
    private Integer type;

    @ApiModelProperty(value = "类型名")
    private String typeName;

    @JsonIgnore
    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "图标id")
    private Integer icon;

    @ApiModelProperty(value = "图标地址")
    private String iconPath;

    @ApiModelProperty(value = "简介")
    private String introduction;

    @ApiModelProperty(value = "状态 1：保存 2：共享")
    private Integer status;

    @JsonIgnore
    @ApiModelProperty(value = "预置资源id")
    private Long resourceId;

    @ApiModelProperty(value = "是否预置 true：预置 false：非预置")
    private Boolean preseted;

    @ApiModelProperty(value = "是否删除 true：已删除 false：未删除")
    private Boolean deleted;

    @ApiModelProperty(value = "是否是自己的课程 true：是 false：否")
    private Boolean ownCourse = false;

    @ApiModelProperty(value = "是否展示课程大纲 true：展示 false：不展示")
    private Boolean courseOutline = false;

    @ApiModelProperty(value = "课程方向")
    private List<List<Long>> direction;

    @JsonIgnore
    @ApiModelProperty(value = "镜像加载类型")
    private Integer imageLoadType;

    @ApiModelProperty(value = "镜像加载类型字符串")
    private String imageLoadTypeStr;

}
